package createModel.BuilderModel.directorBuildPlayer;

/**
 * 2024/01/11
 * <p>
 * ZhangYi
 * Description 建造者模式: - 指挥者指定创建顺序
 */
public class ClientAbstractTest {
    public static void main(String[] args) {
        Director director = new Director();
        director.setBuild(new Worker());
        Product product = director.getProduct();
        System.out.println(product);

        director.setBuild(new HighWorker());
    }
}
